Skip to content

fix: preserve Windows drive roots in glob parents - #69

Open
vhinayindia wants to merge 1 commit into
gulpjs:mainfrom
vhinayindia:fix/preserve-windows-drive-root-63
Open

vhinayindia wants to merge 1 commit into
gulpjs:mainfrom
vhinayindia:fix/preserve-windows-drive-root-63

Conversation

@vhinayindia

Copy link
Copy Markdown

Fixes #63.

Preserve the slash on an absolute Windows drive root when the computed glob parent collapses to the drive prefix. This fixes inputs such as C:/., C:/*, and C:/file.js while keeping existing path extraction behavior elsewhere.

Verified on Windows with Node 24.13.1: npm test (lint and 22 tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect identification of the static part of the pattern for the disk root on Windows

1 participant